package org.middleware.mapper.system;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.middleware.entity.system.SysEnterprises;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author zhiqiangwu
* @description 针对表【sys_enterprises(企业表)】的数据库操作Mapper
* @createDate 2025-09-05 16:40:01
* @Entity generator.domain.SysEnterprises
*/
@Mapper
@Repository
public interface SysEnterprisesMapper{

    public List<SysEnterprises> getEnterprises();

    public SysEnterprises getEnterpriseByID(@Param("id") int id);

    public int createEnterprise(SysEnterprises enterprises);

    public int update(SysEnterprises enterprises);

    public SysEnterprises getEnterprisesByCode(@Param("code") String code);

    public List<SysEnterprises> getEnterprisesOfCurrentUser(@Param("id") int id);
}




